package com.yooohooo.designpattern.factory.abstr;

import com.yooohooo.designpattern.bean.headset.SonyHeadset;
import com.yooohooo.designpattern.bean.phone.SonyPhone;

/**
 * @ClassName: SonyFactory
 * @Description:
 * @author Yooo
 * @date 2017年6月20日 下午9:25:14
 * 
 */
public class SonyFactory implements Factory {
	public SonyPhone getPhone() {
		SonyPhone sonyPhone = new SonyPhone();
		sonyPhone.setBrand("Sony");
		sonyPhone.setOs("Android");
		return sonyPhone;
	}

	public SonyHeadset getHeadset() {
		SonyHeadset sonyHeadset = new SonyHeadset();
		sonyHeadset.setBrand("Sony");
		return sonyHeadset;
	}
}
